﻿using System;

namespace SharpSqlAnalyzer.nodes
{
	// Token: 0x0200031D RID: 797
	public class TObjectReference : TParseTreeNode
	{
		// Token: 0x170006A3 RID: 1699
		// (get) Token: 0x06001CAC RID: 7340 RVA: 0x00332138 File Offset: 0x00330338
		// (set) Token: 0x06001CAB RID: 7339 RVA: 0x00332115 File Offset: 0x00330315
		public virtual int ObjectType
		{
			get
			{
				return this.objectname.ObjectType;
			}
			set
			{
				this.objectname.ObjectType = value;
				if (this.objectname.ObjectType == 3)
				{
					TObjectName tobjectName = this.objectname;
				}
			}
		}

		// Token: 0x06001CAD RID: 7341 RVA: 0x00332145 File Offset: 0x00330345
		public override void init(object arg1)
		{
			if (arg1 is TObjectName)
			{
				this.objectname = (TObjectName)arg1;
				return;
			}
			TSourceToken tsourceToken = arg1 as TSourceToken;
		}

		// Token: 0x06001CAE RID: 7342 RVA: 0x00332164 File Offset: 0x00330364
		public virtual bool isEqual(TObjectReference obj)
		{
			bool flag = this.objectname.ObjectType == obj.ObjectType;
			if (!flag)
			{
				return flag;
			}
			int objectType = this.objectname.ObjectType;
			if (objectType != 1 && objectType != 3)
			{
				flag = false;
			}
			return flag;
		}

		// Token: 0x170006A4 RID: 1700
		// (set) Token: 0x06001CAF RID: 7343 RVA: 0x003321A1 File Offset: 0x003303A1
		public virtual TObjectName Objectname
		{
			set
			{
				this.objectname = value;
			}
		}

		// Token: 0x170006A5 RID: 1701
		// (set) Token: 0x06001CB0 RID: 7344 RVA: 0x003321AA File Offset: 0x003303AA
		public virtual int Location
		{
			set
			{
				this.location = value;
			}
		}

		// Token: 0x04001A7C RID: 6780
		private TObjectName objectname;

		// Token: 0x04001A7D RID: 6781
		private int location;
	}
}
